﻿using carShop.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace carShop.Models
{
    public class Image: IObjectState
    {
        public int Id { get; set; }
        public string FileName { get; set; }
        public DateTime DateUploaded { get; set; }
        public DateTime LastDateModified { get; set; }
        public byte[] ImageData { get; set; }

        //relationships
        public int CarId { get; set; }

        //connectors that represents the relationships
        //this properties are not reflected in the database
        //it has private setter so that it will avoid circular dependency in the web api
        public virtual Car Car { get; private set; }

        public State State { get; set; }
    }
}